package work.base.lambda.example;

/**
 * @author shenminglong@kedacom.com
 * @date 2021-11-25
 */
public class Example {

    // constructor methods
    Example() {}

    Example(String something) {
        System.out.println(something);
    }

    // static methods
    static String startsWith(String s) {
        return String.valueOf(s.charAt(0) + "_AAAAAA");
    }

    // object methods
    String endWith(String s) {
        return String.valueOf(s.charAt(s.length()-1));
    }

    static String endWith2() {
        return "endWith";
    }
}
